package com.example.demo.service;

import com.example.demo.entity.File;
import com.example.demo.exception.file.InvalidPathException;

import java.io.IOException;
import java.util.List;

public interface SearchService {
    /**
     * 获取分享链接
     * @param path:文件路径
     * @return base：分享的链接
     * @throws InvalidPathException
     */
    String shareFile(String path)throws InvalidPathException;
    /**
     * @param orderName：排序的名字，通过ordername排序
     * @param ascending：true：升序，false：降序
     * @param name：标签
     * @param be_star：是否加星
     * @param be_share：是否分享过？
     * @param be_new：是否为新建
     //* @param be_deleted：是否删除
     * @param keyWords：关键词
     * @return
     */
    List<File> searchFile(String orderName, Boolean ascending,  String name, Boolean be_star, Boolean be_share, Boolean be_new,String keyWords) throws IOException;//搜索

    //搜索文件路径的下一级文件/夹
    Object searchNextFile(String orderName, Boolean ascending, String filePath, String keyWords) throws IOException;
    //搜索回收站下一级文件/夹
    Object searchDeletedFile(String orderName, Boolean ascending, Boolean be_deleted, String keyWords) throws IOException;

}
